package com.slice.upload.base;

import lombok.Getter;

/**
 * @ClassName UploadMode
 * @Description 上传模式
 * @Author frinder
 * @Date 2021/1/26 16:38
 * @Verion 1.0
 */
public enum UploadMode {
    /** random */
    RANDOM(1),
    /** mapped */
    MAPPED(2),
    ;

    @Getter
    private int code;

    public boolean is(UploadMode mode) {
        return this.equals(mode);
    }

    UploadMode(int code) {
        this.code = code;
    }
}
